package query.select

import ast.statement.select.SqlSelectQuery
import database.DBConnection
import expr.DB
import expr.QuerySub
import query.BasedQuery

interface SelectQuery : BasedQuery {
    fun getSelect(): SqlSelectQuery

    fun getDbType(): DB

    var dbConnection: DBConnection?

    infix fun union(select: SelectQuery): UnionSelect

    infix fun unionAll(select: SelectQuery): UnionSelect

    fun toExpr() : QuerySub
}